package hero;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import core.FlyingObject;

public class WingPlane extends FlyingObject{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4081299357831700429L;
	//僚机图片
	private static BufferedImage image;
	//加载僚机图片
	static {
		image=readImage("src/images/wingPlane.png");
	}
	//僚机生成位置和英雄机有关
	public WingPlane(int x, int y) {
		this.x=x;
		this.y=y;
		this.width=32;
		this.height=35;
	}
	public BufferedImage getImage() {
		if (isLife()) {// 如果活着
			return image;
		} else if (isDead()) {
			status = remove;
		}
		return null;
	}
	public void move1(int x,int y) {
		this.x=x;
		this.y=y;
	}
	public void step() {
		
	}
	
	public void paintImage(Graphics g) {
		g.drawImage(image, x, y,null);
	}
	
}
